<template>
<a-button type="primary" @click="showModal">Open Modal</a-button>
    <m-modal @afterClose="handleAfterClose" :fullscreen="true" v-model:visible="visible" title="Basic Modal" @ok="handleOk">
      ===
      <template #cancelText>
        取消111
      </template>
    </m-modal>
</template>
<script setup lang="ts">
import { ref } from 'vue';

  const visible = ref(false)
  const showModal = () =>{
    visible.value = true;
  }
  const handleOk = () =>{
    visible.value = false;
  }
  const handleAfterClose = () => {
    console.log('handleAfterClose')
  }
</script>
<style lang="less" scoped>

</style>